﻿lastScrollY = 0;
function heartBeat() {
    var diffY;
    if (document.documentElement && document.documentElement.scrollTop)
        diffY = document.documentElement.scrollTop;
    else if (document.body)
        diffY = document.body.scrollTop
    else
    { /*Netscape stuff*/ }

    //alert(diffY);
    percent = .1 * (diffY - lastScrollY);
    if (percent > 0) percent = Math.ceil(percent);
    else percent = Math.floor(percent);

    document.getElementById("kefu14").style.top = parseInt(document.getElementById("kefu14").style.top) + percent + "px";

    lastScrollY = lastScrollY + percent;
    //alert(lastScrollY);
}


var str = "<div  id=\"kefu14\" style=\"width:120px; height:278px;background-image: url(http://i.ymcps.com/images/float/images/bgimg.png); position:absolute;top:100px;\">";
str += "<div style=\"position:absolute; top:-13px; right:10px;font-size:12px;\"><a href=\"javascript:void(0);\" onclick=\"document.getElementById('kefu14').style.display='none';\">关闭</a></div>";
str += "<ul style='margin:0;list-style:none;font-size:12px;text-align:center; padding:105px 0 0 25px; line-height:17px'>";
str += "<li style=\"margin-bottom:10px;\">乾坤版咨询<br /><a target=\"_blank\"  href=\"http://chat8.live800.com/live800/chatClient/chatbox.jsp?jid=2481090829&companyID=65833&configID=64138&skillId=2872&enterurl=http%3A%2F%2Fpay%2Eemoney%2Ecn%2Fproduct%2Easpx&tm=1302605843868\">[<font color=\"#CC0000\">咨询</font>]</a></li>";
str += "<li style=\"margin-bottom:10px;\">睿讯通咨询<br /><a target=\"_blank\"  href=\"http://chat10.live800.com/live800/chatClient/chatbox.jsp?jid=3968645766&companyID=87735&configID=163194&skillId=8757&enterurl=http%3A%2F%2Fchat10%2Elive800%2Ecom%3A8080%2Flive800%2Fpreview%2Ejsp&tm=1299136645122\">[<font color=\"#CC0000\">咨询</font>]</a></li>";
str += "</ul>";
str += "<a href=\"http://b.qq.com/webc.htm?new=0&sid=4006706668&eid=218808P8z8p8R8p8R8y8z&o=http://www.emoney.cn/&q=7\" target=\"_blank\"><img src=\"http://i.ymcps.com/images/float/images/an1.png\" border=\"0\" style=\"position:absolute; top:213px; left:6px;\" /></a>\<a href=\"http://b.qq.com/webc.htm?new=0&sid=4006707799&eid=218808P8z8p8y8R8p8Q8K&o=http://www.emoney.cn/&q=7\" target=\"_blank\"><img src=\"http://i.ymcps.com/images/float/images/an2.png\" border=\"0\" style=\"position:absolute; top:241px; left:6px;\" /></a>";
str += "</div>";

suspendcode14 = str;
document.write(suspendcode14);
window.setInterval("heartBeat()", 1);